dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69fab53
)
Add getVisibility()
author
Aaron Schulz
<aaron@users.mediawiki.org>
Sun, 19 Oct 2008 05:47:23 +0000
(
05:47
+0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Sun, 19 Oct 2008 05:47:23 +0000
(
05:47
+0000)
includes/Revision.php
patch
|
blob
|
history
diff --git
a/includes/Revision.php
b/includes/Revision.php
index
857c50f
..
42bffea
100644
(file)
--- a/
includes/Revision.php
+++ b/
includes/Revision.php
@@
-544,6
+544,13
@@
class Revision {
public function isDeleted( $field ) {
return ($this->mDeleted & $field) == $field;
}
+
+ /**
+ * Get the deletion bitfield of the revision
+ */
+ public function getVisibility() {
+ return (int)$this->mDeleted;
+ }
/**
* Fetch revision text if it's available to the specified audience.